//
// Created by 刘昱杉2020 on 2023/4/24.
//

#ifndef CAR_IMU_H
#define CAR_IMU_H
#include "string.h"
#include "main.h"

typedef struct {
    float acc_x;
    float acc_y;
    float acc_z;
    float gyro_x;
    float gyro_y;
    float gyro_z;
    float mag_x;
    float mag_y;
    float mag_z;
} JY61P_Data;

extern JY61P_Data data;
void USR_USART1_IRQHandler(void);

void JY61P_PrintData(const JY61P_Data *data);
void JY61P_BlockingUpdate(void);

#endif //CAR_IMU_H
